public class Text5 {
    public static void main(String[] args) {
        Thread t = new Thread(() -> {
            while(true){
                System.out.println("hello thread");
            }
        });

        t.start();
        while(true){
            System.out.println("hello main");
        }
    }
}
